* {
    margin: 0;
    padding: 0;
}

.w {
    width: 1200px;
    margin: auto;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

body {
    font-family: monaco;
    background-color: #f3f5f7;
}

.clearfix:after {
    content: "";
    display: block;
    clear: both;
}

.clear {
    clear: both;
}

/* ---------------- */

.header {
    height: 42px;
    margin: 30px auto;
    /* 注意层叠w里面的margin */
}

.header .logo {
    float: left;
    width: 195px;
    height: 42px;
    /*不加高度，图片如果大了就会超出*/
}

.header .nav {
    float: left;
    margin-left: 60px;
}

.header .nav li {
    float: left;
    margin: 0 15px;
}

/* a 要转换成块元素:因为那样的话点击区域会更大，你这样： padding-bottom: 10px;只有下面一部分可以哦 */
.header .nav li a {
    display: block;
    padding: 0 10px;
    height: 42px;
    line-height: 42px;
    font-size: 18px;
    color: #050505;
}

.header .nav li a:hover {
    border-bottom: 2px solid #00a4ff;
    color: #00a4ff;
}

.header.search {
    float: left;
    width: 412px;
    height: 42px;
    margin-left: 70px;
}

.header .search input {
    float: left;
    width: 345px;
    height: 40px;
    border: 1px solid #00a4ff;
    border-right: 0;
    color: #bfbfbf;
    font-size: 14px;
    padding-left: 14px;
}

.header .search button {
    float: left;
    width: 50px;
    height: 42px;
    border: 0;
    background: url('/img/btn.png');
}


.header .info {
    float: right;
    line-height: 42px;
    margin-right: 30px;
    font-size: 14px;
    color: #666;
}

.header .info img {
    vertical-align: middle;
}

/* 头部完成 git 一下*/

.banner {
    height: 421px;
    background-color: #1c036c;
}

.banner .w {
    height: 421px;
    background: url("img/banner2_20190819_210028.png") no-repeat top center;
}

.subnav {
    float: left;
    width: 190px;
    height: 421px;
    background: rgba(0, 0, 0, 0.3);
}

.subnav ul li {
    height: 45px;
    line-height: 45px;
    padding: 0 20px;
}

.subnav ul li a {
    display: block;
    height: 45px;
    font-size: 14px;
    color: #fff;
}

.subnav ul li a span {
    float: right;
}

.subnav ul li a:hover {
    color: #00a4ff;
}

.course {
    float: right;
    width: 230px;
    height: 300px;
    background-color: #fff;
    /* 浮动的盒子不会有外边距合并的问题 */
    margin-top: 50px;
}

.course h2 {
    height: 48px;
    background-color: #9bceea;
    text-align: center;
    line-height: 48px;
    font-size: 18px;
    color: #fff;
}

.bd {
    padding: 0 20px;
}

.bd ul li {
    padding: 14px 0;
    border-bottom: 1px solid #ccc;
}

.bd ul li h4 {
    font-size: 16px;
    color: #4e4e4e;
}

.bd ul li p {
    font-size: 12px;
    color: #a5a5a5;
}

.bd a.more {
    display: block;
    height: 38px;
    border: 1px solid #00a4ff;
    margin-top: 5px;
    text-align: center;
    line-height: 38px;
    color: #00a4ff;
    font-size: 16px;
    font-weight: 700;
}

/* 精品模块 */
.goods {
    height: 60px;
    /*内部元素一定不要超过这个高度*/
    font-size: 16px;
    background-color: #fff;
    margin-top: 10px;
    box-shadow: 0 2px 3px 3px rgba(0, 0, 0, 0.1);
    line-height: 60px;
}

.goods h3 {
    margin: 0 30px;
    float: left;
    color: #00a4ff;
}

.goods ul li {
    float: left;
}

.goods ul li a {
    padding: 0 30px;
    color: #000;
    border-left: 1px solid #ccc;
}

.goods .mod {
    float: right;
    margin-right: 30px;
    color: #00a4ff;
}

/* box 部分 */
.box {
    margin-top: 30px;
}

.box-hd {
    height: 45px;
}

.box-hd h3 {
    float: left;
    font-size: 20px;
    color: #494949;
}

.box-hd a {
    float: right;
    font-size: 12px;
    color: #a5a5a5;
    margin-right: 30px;
    margin-top: 10px;
}

/* li 挤下去了，ul 加大即可，反正margin 又看不看 */
.box-bd ul {
    width: 1215px;
}

.box-bd ul li {
    float: left;
    width: 228px;
    height: 270px;
    margin-right: 15px;
    margin-bottom: 15px;
    background-color: #fff;
}

.box-bd ul li img {
    width: 100%;
}

.box-bd ul li h4 {
    margin: 20px 20px 20px 25px;
    font-weight: normal;
    font-size: 14px;
}


.box-bd .info {
    font-size: 12px;
    margin: 0 25px 20px;
    color: #ababab;
}

.box-bd .info span {
    color: #ffaa8b;
}

/* 编程入门*/
.coding .coding-header {
    height: 45px;
}

.coding .coding-header h3 {
    float: left;
    line-height: 45px;
    color: #494949;
}



.coding .coding-header ul {
    margin: 0 360px 0 350px;
}

.coding .coding-header ul li {
    float: left;
    line-height: 45px;
    padding: 0 30px;
}

.coding .coding-header ul li a {
    font-size: 16px;
    color: #868686;
}

.coding .coding-header span {
    float: right;
    line-height: 45px;
    margin-right: 30px;
}

.coding .coding-header span a {
    font-size: 12px;
    color: #b2b2b2;
}

.coding .coding-body .coding-body-left {
    float: left;
    width: 230px;
}

.coding .coding-body .coding-body-right {
    float: right;
    width: 957px;
}

.coding .coding-body .coding-body-right .under {
    margin-top: 20px;
    text-align: center;
}

.coding .coding-body .coding-body-right .under li {
    float: left;
    width: 231px;
    margin-right: 11px;
    background-color: #fff;
}

.coding .coding-body .coding-body-right .under li.last {
    margin-right: 0px;
}

.coding .coding-body .coding-body-right .under li h4 {
    color: #464646;
    margin: 20px 20px 20px 25px;
    font-weight: normal;
    font-size: 14px;
}

.coding .coding-body .coding-body-right .under li .info {
    padding-bottom: 10px;
    font-size: 12px;
}

.coding .coding-body .coding-body-right .under li .info span {
    color: green;
}

/* footer部分 */
.footer {
    margin-top: 20px;
    background-color: #fff;
    font-size: 12px;
    color: #585858;
}

.footer .w {
    padding-top: 20px;
}

.footer .copyright {
    float: left;
}

.footer .links {
    float: right;
}

.copyright p {
    margin: 20px 0 15px 0;
    color: #666;
}

.copyright .app {
    display: block;
    width: 100px;
    height: 30px;
    border: 1px solid red;
    text-align: center;
    line-height: 30px;
    font-size: 16px;
    color: #00a4ff;
}

.links dl {
    float: left;
    margin-left: 60px;
}

.links dl dt {
    color: #333;
    font-size: 16px;
    margin-bottom: 10px;
}

.links dl dd a {
    color: #333;
}







